import 'package:flutter/cupertino.dart';

class CustomNavigatorObserver extends NavigatorObserver {
  static CustomNavigatorObserver _instance;
  CustomNavigatorObserver._();
  static CustomNavigatorObserver getInstance() {
    if (_instance == null) {
      _instance = CustomNavigatorObserver._();
    }
    return _instance;
  }

  static BuildContext getContext() {
    return getInstance().navigator.context;
  }
}
